-
-
Notifications
You must be signed in to change notification settings - Fork 126
[MCP Bundle] Add MCP profiler support to display server capabilities #866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This adds a Web Profiler integration for the MCP Bundle that displays MCP server capabilities (tools, prompts, resources, resource templates) in the Symfony debug toolbar and profiler panel. Features: - ProfilingLoader to capture Registry reference during server build - DataCollector to collect and display MCP capabilities - Split templates for each capability type (tools, prompts, resources, resource templates) - Copy Schema button for tool input schemas - Nested tabs structure following Symfony profiler conventions Note: This implementation depends on the loader pattern. If MCP SDK PR symfony#146 (direct Registry injection via DI) is merged, this approach may need adjustment.
chr-hertel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks great already, but let's please switch to a TraceableRegistry once modelcontextprotocol/php-sdk#150 gets merged - makes sense?
|
Would love to see some infos around the MCP Profiler and the screenshot in the documentation |
chr-hertel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be able to use/decorate the Registry directly now and skip the ProfilingLoader, right?
Now that modelcontextprotocol/php-sdk#150 is merged, the Registry can be injected directly into the Builder. This allows replacing the ProfilingLoader with a cleaner TraceableRegistry decorator pattern.
Description
This PR adds a Web Profiler integration for the MCP Bundle that displays MCP server capabilities (tools, prompts, resources, resource templates) in the Symfony debug toolbar and profiler panel.
Features
Note: This implementation depends on the loader pattern. If MCP SDK PR #146 (direct Registry injection via DI) is merged, this approach may need adjustment.